package com.example.book_recommend.entity;

import java.util.Date;

public class Comment {
    private Integer commentId;

    private Integer bookId;

    private Integer userId;

    private String username;

    private Date date;

    private String content;

    private String flag;

    public Comment(Integer commentId, Integer bookId, Integer userId, String username, Date date, String content, String flag) {
        this.commentId = commentId;
        this.bookId = bookId;
        this.userId = userId;
        this.username = username;
        this.date = date;
        this.content = content;
        this.flag = flag;
    }

    public Comment() {
        super();
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag == null ? null : flag.trim();
    }
}